package com.study.concurrent.B_ThreadSynchronizedBasic.d_UseConditionsInSynchronizedCodes;

/**
 * Created by 赵超 on 2017/3/22.
 * 消费者
 */
public class Consumer implements Runnable {
    private EventStorage storage;

    public Consumer(EventStorage storage) {
        this.storage = storage;
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            storage.get();
        }
    }
}
